package builder;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2021/10/19
 */
public class MacComputerBuilder extends ComputerBuilder {
	private Computer computer;

	public MacComputerBuilder(String cpu, String ram) {
		computer = new Computer(cpu, ram);
	}
	@Override
	public void setUsbCount() {
		computer.setUsbCount(2);
	}

	@Override
	public void setKeyboard() {
		computer.setKeyboard("magic");
	}

	@Override
	public void setDisplay() {
		computer.setDisplay("apple");
	}

	@Override
	public Computer getComputer() {
		return computer;
	}
}
